package com.pc.service.impl;

import com.pc.enrty.Orderitems;
import com.pc.mapper.OrderItemsMapper;
import com.pc.service.OrderItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public class OrderItemsServiceImpl implements OrderItemsService {
    @Autowired
    private OrderItemsMapper orderItemsMapper;
    @Override
    public ArrayList<Orderitems> findOrderitems(Orderitems orderitems) {
        return null;
    }

    @Override
    public boolean addOrderItems(Orderitems orderItems) {
        return orderItemsMapper.insertOrderItems(orderItems)>0?true:false;
    }

    @Override
    public boolean removeOrderItems(Orderitems orderItems) {
        return false;
    }

    @Override
    public boolean updateOrderItems(Orderitems orderItems) {
        return false;
    }
}
